import React from 'react';
import ReactDom from 'react-dom';
import {Button,Menu,Modal,Icon,Tabs,message,Form,Input,CheckBox} from 'antd';
import 'antd/dist/antd.css';
const FormItem = Form.Item;
const SubMenu = Menu.SubMenu;
const TabPane = Tabs.TabPane;
const MenuItemGroup = Menu.MenuItemGroup;
import { Row,Col } from 'antd';
import {Router, Route, Link, hashHistory} from 'react-router';
import Index from './components/admin/index';
import Login from './components/admin/login';

export default class Admin extends React.Component{
    constructor(){
    	super();
    	this.state={
    		sta:true
    	}
    }
	render(){
		return (
			<Router history={hashHistory}>
			    <Route path="/" component={localStorage.logined?Index:Login}></Route>
			</Router>
		);
	}
}

ReactDom.render(<Admin/>,document.getElementById('mainContainer'));